package appapi.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
@ApiModel(value = "告警台账记录显示对象")
@Data
public class AlarmLedgerModel {
    /**
     * 设备类型
     */
    @ApiModelProperty(value = "设备类型")
    @Excel(name = "设备类型", orderNum = "0",width = 20)
    private String equipTypeName;

    /**
     * 设备别名
     */
    @ApiModelProperty(value = "设备别名")
    @Excel(name = "设备别名", orderNum = "0",width = 20)
    private String equipName;

    /**
     * 规格型号
     */
    @ApiModelProperty(value = "规格型号")
    @Excel(name = "规格型号", orderNum = "0",width = 20)
    private String equipModel;

    /**
     * 所属机构
     */
    @ApiModelProperty(value = "所属机构")
    @Excel(name = "所属机构", orderNum = "0",width = 20)
    private String orgaName;

    /**
     * 告警类型
     */
    @ApiModelProperty(value = "告警类型")
    @Excel(name = "告警类型", orderNum = "0",width = 20)
    private String alarmType;

    /**
     * 告警内容
     */
    @ApiModelProperty(value = "告警内容")
    @Excel(name = "告警内容", orderNum = "0",width = 20)
    private String alarmContent;

    /**
     * 告警时间
     */
    @ApiModelProperty(value = "告警时间")
    @Excel(name = "告警时间",orderNum = "0", width = 50, format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime alarmDate;
}
